package com.ruoyi.personnel.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import java.util.Date;

/**
 * 访客信息对象 fw_visitor_user
 * 
 * @author ruoyi
 * @date 2020-02-21
 */
public class FwVisitorUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 微信返回用户的唯一标识 */
    @Excel(name = "微信返回用户的唯一标识")
    private String openId;

    /** 姓名 */
    @Excel(name = "姓名")
    private String name;

    /** 性别（0 男；1 女） */
    @Excel(name = "性别", readConverterExp = "0=,男=；1,女=")
    private String gender;

    /** 身份证号码 */
    @Excel(name = "身份证号码")
    private Long idNumber;

    /** 手机号码 */
    @Excel(name = "手机号码")
    private String phone;

    /** 现住址 */
    @Excel(name = "现住址")
    private String presentAddress;

    /** 省 */
    @Excel(name = "省")
    private String province;

    /** 市 */
    @Excel(name = "市")
    private String city;

    /** 区/县 */
    @Excel(name = "区/县")
    private String district;

    /** 访客类别（0 常住；1 非常住） */
    @Excel(name = "访客类别", readConverterExp = "0=,常=住；1,非=常住")
    private String category;

    /** 授权访问次数（单位：次或月） */
    @Excel(name = "授权访问次数", readConverterExp = "单=位：次或月")
    private Integer authorizedDuration;

    /** 创建人 */
    @Excel(name = "创建人")
    private String creator;

    /** 修改人 */
    @Excel(name = "修改人")
    private String modifier;

    /** 修改时间 */
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date modifyTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setOpenId(String openId)
    {
        this.openId = openId;
    }

    public String getOpenId()
    {
        return openId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setGender(String gender) 
    {
        this.gender = gender;
    }

    public String getGender() 
    {
        return gender;
    }
    public void setIdNumber(Long idNumber) 
    {
        this.idNumber = idNumber;
    }

    public Long getIdNumber() 
    {
        return idNumber;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setPresentAddress(String presentAddress) 
    {
        this.presentAddress = presentAddress;
    }

    public String getPresentAddress() 
    {
        return presentAddress;
    }
    public void setProvince(String province) 
    {
        this.province = province;
    }

    public String getProvince() 
    {
        return province;
    }
    public void setCity(String city) 
    {
        this.city = city;
    }

    public String getCity() 
    {
        return city;
    }
    public void setDistrict(String district) 
    {
        this.district = district;
    }

    public String getDistrict() 
    {
        return district;
    }
    public void setCategory(String category) 
    {
        this.category = category;
    }

    public String getCategory() 
    {
        return category;
    }
    public void setAuthorizedDuration(Integer authorizedDuration) 
    {
        this.authorizedDuration = authorizedDuration;
    }

    public Integer getAuthorizedDuration() 
    {
        return authorizedDuration;
    }
    public void setCreator(String creator) 
    {
        this.creator = creator;
    }

    public String getCreator() 
    {
        return creator;
    }
    public void setModifier(String modifier) 
    {
        this.modifier = modifier;
    }

    public String getModifier() 
    {
        return modifier;
    }
    public void setModifyTime(Date modifyTime) 
    {
        this.modifyTime = modifyTime;
    }

    public Date getModifyTime() 
    {
        return modifyTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("openId", getOpenId())
            .append("name", getName())
            .append("gender", getGender())
            .append("idNumber", getIdNumber())
            .append("phone", getPhone())
            .append("presentAddress", getPresentAddress())
            .append("province", getProvince())
            .append("city", getCity())
            .append("district", getDistrict())
            .append("category", getCategory())
            .append("authorizedDuration", getAuthorizedDuration())
            .append("creator", getCreator())
            .append("modifier", getModifier())
            .append("modifyTime", getModifyTime())
            .append("createTime", getCreateTime())
            .toString();
    }
}
